package cn.stylefeng.guns.modular.hp.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 医院简介表
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-12
 */
@TableName("hp_hospital_desc")
public class HospitalDescInfo extends Model<HospitalDescInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 简介（文本）
	 */
	private String desc;
	/**
	 * 图片名称
	 */
	private String picName;
	/**
	 * 图片地址
	 */
	private String picUrl;
	/**
	 * 外链地址
	 */
	private String pageContentId;
	/**
	 * 外链地址
	 */
	private String linkUrl;
	/**
	 * 是否展示  1-是 0-否
	 */
	private Integer showFlag;
	/**
	 * 创建时间
	 */
	private Date createdTime;
	/**
	 * 创建人
	 */
	private Integer creater;
	/**
	 * 乐观锁保留字段
	 */
	private Integer version;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getPageContentId() {
		return pageContentId;
	}

	public void setPageContentId(String pageContentId) {
		this.pageContentId = pageContentId;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public Integer getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(Integer showFlag) {
		this.showFlag = showFlag;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
	public String toString() {
		return "FriendlyLinkInfo{" 
				+ "id=" + id + ""
				+ "desc=" + desc + ""
				+ ", picName=" + picName
				+ ", picUrl=" + picUrl
				+ ", showFlag=" + showFlag
				+ ", createdTime=" + createdTime 
				+ ", creater=" + creater 
				+ ", version=" + version == null ? "null" : version 
				+ "}";
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
